# Relational operators in expressions

Relational operators compare two values to provide a true or false result. If the statement is true, a value of 1 is returned. If false, 0 is returned. There are six relational operators; each has two different symbols.

Symbols | Operator | Example
EQ, == | equal | tag1 == tag2
NE, <> | not equal | tag1 <> tag2
LT, < | less than | tag1 < tag2
GT, > | greater than | tag1 > tag2
LE, <= | less than or equal to | tag1 <= tag2
GE, >= | greater than or equal to | tag1 >= tag2

## See also

About expressions

Example: Relational operators